#pragma once

class CEditableListCtrl :
    public CListCtrl
{
    DECLARE_DYNAMIC(CEditableListCtrl)

    // Constructors
public:
    CEditableListCtrl();
    virtual ~CEditableListCtrl();

protected:
    virtual BOOL CanEdit(int nRow, int nCol);
    virtual BOOL OnRequestEdit(int nRow, int nCol, CRect oEditRect);
    virtual BOOL OnRequestDelete(int nRow);

    BOOL GetSubItemRect(int iItem, int iSubItem, int nArea, CRect& ref);

public:
    DECLARE_MESSAGE_MAP()
    afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
    afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
};